import { PageLoading } from "@ant-design/pro-components";
import { FC, ReactNode } from "react"

const LoadingWrap: FC<{ children: ReactNode, loading?: boolean, }> = ({ children, loading }) => {
    return <>{(loading != undefined && loading) ? <PageLoading></PageLoading> : children}</>
}
export default LoadingWrap